package com.wms.service.impl;

import com.wms.entity.AdminRole;
import com.wms.mapper.AdminRoleMapper;
import com.wms.service.AdminRoleService;
import io.jsonwebtoken.lang.Assert;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdminRoleServiceImpl extends BaseServiceImpl<AdminRoleMapper, AdminRole> implements AdminRoleService {

    @Resource
    private AdminRoleMapper adminRoleMapper;


    @Override
    public void deleteByAdminId(Long adminId) {
        Assert.notNull(adminId);
        adminRoleMapper.deleteByAdminId(adminId);
    }

    @Override
    public void deleteByAdminIds(List<Long> adminIds) {
        Assert.notEmpty(adminIds);
        adminRoleMapper.deleteByAdminIds(adminIds);
    }


}

